<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            background-color: purple;
            /*设置背景*/
            background-image: url("../mg.png");
            /*设置背景图片尺寸*/
            background-size: 100px 100px;
            /*禁止重复*/
            background-repeat: no-repeat;
            /*控制背景图片的位置*/
            background-position: 50% 50%;
        }
        h1{
            color: rgba(255,0,166,255);
        }

        #d1{
            width: 611px;
            height: 367px;
            background-color: #e8e8e8;
            background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img1.png");
            background-size: 318px 319px;
            background-position: 90% 90%;
        }


        #d2{
            width: 357px;
            height: 376px;
            background-color: #e8e8e8;
            background-image: url("http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img2.png");
            background-size: 292px 232px;
            background-position: 90% 90%;
        }
    </style>
</head>
<body>
<div id="d1"></div>
<div id="d2"></div>
<div></div>
<h1>颜色测试</h1>
</body>
</html>